﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Program
    {
        static void Main(string[] args)
        {
            Udisk ud = new Udisk("金士顿64G");
            MobileHardDisk mhd = new MobileHardDisk("三星64G");

            ud.Info();
            ud.Read();
            ud.Write();
            Console.WriteLine();
            mhd.Info();
            mhd.Read();
            mhd.Write();

            Console.WriteLine();
            Computer com = new Computer("联想");
            com.Start();
            com.Usb1 = ud;
            com.Usb2 = mhd;
            com.WriteData();
            com.ReadData();
            
            com.End();


        }
    }
}
